﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_Login.aspx.cs" Inherits="V5_EShop.Admin.Admin_Login" %>

<%
    //======================================================================   
    //   
    //        Copyright (C) 2005-2020 CUIT-408. All rights reserved.   
    //   
    //        CLR Version: 2.0.50727.4952   
    //        NameSpace: V5.Travel.Admin   
    //        FileName: Sys_Login   
    //   
    //        Created by v5soft at 2011/2/25 17:51:48   
    //        http://www.v5soft.com  
    //		  Email:v5soft@126.com   
    //
    //======================================================================
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Pragma">
<meta http-equiv="Cache-Control">
<meta http-equiv="Expires">
<head>
    <title>用户登陆</title>
    <style>
        body { padding-right: 0px; padding-left: 0px; font-size: 12px; padding-bottom: 0px; margin: 0px; color: #333; padding-top: 0px; font-family: Arial, Helvetica, sans-serif; background-color: #fff; }
        form { margin: 0px; }
        .login-div { border-right: #a2d0e5 1px solid; border-top: #a2d0e5 1px solid; border-left: #a2d0e5 1px solid; border-bottom: #a2d0e5 1px solid; margin: 100px auto 0 auto; width: 432px; }
        .login-form { width: 430px; }
        .login-form .title { font-weight: bold; font-size: 14px; background-image: url(../includes/images/indexback.gif); color: infobackground; text-indent: 20px; line-height: 30px; height: 30px; text-align: left; }
        .login-form td { height: 35px; }
        .login-form .inputbox { width: 150px; border-right: #e8e8e8 1px solid; border-top: #b4b4b4 1px solid; border-left: #b4b4b4 1px solid; border-bottom: #e8e8e8 1px solid; }
        .login-form .button { border-right: #e8e8e8 1px solid; border-top: #b4b4b4 1px solid; border-left: #b4b4b4 1px solid; border-bottom: #e8e8e8 1px solid; }
    </style>
    <script type="text/javascript" src="../Scripts/jquery.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#imgVerifyCode").attr("src", "../includes/GetVerifyCode.aspx");
        });
    </script>
</head>
<body>
    <form id="myform" runat="server" onsubmit="return CheckForm();">
    <div class="login-div">
        <table cellpadding="0" cellspacing="0" class="login-form">
            <tr>
                <td colspan="2" class="title">
                    <img alt="" id="Image1" src="../includes/images/lock.gif" style="border-width: 0px;" />
                    管理登陆
                </td>
            </tr>
            <tr>
                <td style="width: 100px;" align="right">
                    用户名：
                </td>
                <td>
                    <asp:TextBox ID="txtAdminName" runat="server" TabIndex="1" CssClass="username"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    密 码：
                </td>
                <td>
                    <asp:TextBox ID="txtAdminPwd" runat="server" TextMode="Password" TabIndex="2" CssClass="password"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    验证码：
                </td>
                <td>
                    <asp:TextBox ID="txtVerifyCode" runat="server" Width="43px" TabIndex="3" CssClass="vercode"></asp:TextBox><img
                        src='../includes/GetVerifyCode.aspx' alt="验证码" onclick="this.src=this.src">
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:Button ID="btnLogin" runat="server" OnClick="btnLogin_Click" Text="确定登陆" CssClass="button" />
                    <input onclick="javascript:location.href='../'" type="button" value="返回首页" name="Submit1"
                        class="button" />
                </td>
            </tr>
        </table>
    </div>
    <table border="0" cellspacing="0" cellpadding="0" width="100%" background="/css/admin/bottom_bg.gif"
        height="56">
        <tr>
            <td>
                <div align="center">
                    <span style="font-size: 10px">(c)2010-<%=DateTime.Now.ToString("yyyy") %></span></div>
            </td>
        </tr>
    </table>
    </form>
    <script language="JavaScript" type="text/javascript">
        window.load = function () {
            window.status = "建议采用IE5.5以上版本浏览器、1024*768分辨率进入后台\本系统对Maxthon,Mozilla Firefox等浏览器有良好的支持";
            CheckBrowerVersion();
        }

        function CheckBrowerVersion() {
            var MajorVer = navigator.appVersion.match(/MSIE (.)/)[1];
            var MinorVer = navigator.appVersion.match(/MSIE .\.(.)/)[1];
            var IE6OrMore = MajorVer >= 5.5 || (MajorVer >= 5.5 && MinorVer >= 5.5);
            if (!IE6OrMore) {
                alert('IE浏览器版本太低，系统将不能正常运行。点击确定将带你到下载地址！');
                location.href = "http://www.v5soft.com"
            }
        }
        function CheckForm() {
        try
        {
            if (document.myform.txtUserName.value == "") {
                alert("请输入您的用户名！");
                document.myform.txtUserName.focus();
                return false;
            }
            if (document.myform.txtPassWord.value == "") {
                alert("请输入您的密码！");
                document.myform.txtPassWord.focus();
                return false;
            }
            if (document.myform.txtVerifyCode.value == "") {
                alert("请输入您的验证码！");
                document.myform.txtVerifyCode.focus();
                return (false);
            }
            }catch(ex){}
        }
    </script>
</body>
</html>
